package com.example.aircraftticketingsystemserver.service;

import com.example.aircraftticketingsystemserver.entity.User;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author lxz
 * @since 2024-08-05
 */
public interface IUsersService extends IService<User> {
    /**
     *
     * @return user
     */
    User login(User user);

    /**
     * 通过token获取用户信息
     * @param token
     * @return
     */
    User getUserByToken(String token);

    /**
     * 添加用户
     */
    User addUser(User user);
}
